Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

456
Views
Advertencia: cada niño en una lista debe tener un accesorio de "clave" único. con entrada - reaccionar

tengo esto:

 {array.map((item) => ( <> <input key={item.id} type="checkbox" /> <h3>{item.value}</h3> </> ))}

y en el sitio web veo la advertencia: "Advertencia: cada niño en una lista debe tener un accesorio de "clave" único". pero puse el atributo "clave". ¿Alguien sabe por qué?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El elemento fragment ( <></> ) es el elemento secundario de nivel superior aquí, y necesita un accesorio key . La sintaxis corta que se usa no admite agregar un atributo, pero la sintaxis más larga sí:

 <React.Fragment key={item.id}> <input type="checkbox" /> <h3>{item.value}</h3> </React.Fragment>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!